package cn.com.dbappsecurity.utils;

import javax.servlet.http.Cookie;

public class CookieUtil {

	private CookieUtil(){
	}
	
	public static String getValue(Cookie[] cookies,String name){
		if(cookies != null && name != null){
			for(Cookie ck : cookies){
				if(name.equalsIgnoreCase(ck.getName())){
					return ck.getValue();
				}
			}
		}
		return null;
	}
	
}
